<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <link rel="stylesheet" href="popup.css">
  <script defer src="popup.js"></script>
</head>

<body>
  <div class="title">LoveJS V1.1👋</div>
  <div class="tabs noSelect">
    <button class="tab active" data-tab="tab1">信息搜集</button>
    <button class="tab" data-tab="tab2">URL多开</button>
    <button class="tab" data-tab="tab5">记事本</button>
    <button class="tab" data-tab="tab3">自定义</button>
    <button class="tab" data-tab="tab4">关于作者</button>
  </div>

  <div id="tab1" class="tab-content active">
    <div class="sub-tab-layout">
      <div class="sub-sidebar">
        <div class="sub-tab noSelect active" data-sub="sub1">隐藏接口</div>
        <div class="sub-tab noSelect" data-sub="sub4">敏感信息</div>
        <div class="sub-tab noSelect" data-sub="sub2">域名信息</div>
        <div class="sub-tab noSelect" data-sub="sub3">IP信息</div>
      </div>
      <div class="sub-content">
        <div id="sub1" class="sub-content-panel active">
          <div class="card">
            <div class="card-header noSelect">
              接口信息
              <button class="card-button" id="copyPathBtn">复制接口</button>
              <button class="card-button" id="copyFullUrlBtn">复制完整URL</button>
            </div>
            <div class="card-content" id="url_list"></div>
          </div>
        </div>
        <div id="sub2" class="sub-content-panel">
          <div class="card">
            <div class="card-header noSelect">
              域名信息 <button class="card-button" id="copyBtn">复制全部</button>
            </div>
            <div class="card-content" id="domain_list"></div>
          </div>
        </div>
        <div id="sub3" class="sub-content-panel">
          <div class="card">
            <div class="card-header noSelect">
              IP信息 <button class="card-button" id="copyIpBtn">复制全部</button>
            </div>
            <div class="card-content" id="ip_list"></div>
          </div>
        </div>
        <!-- 新增敏感信息面板 -->
        <div id="sub4" class="sub-content-panel">
          <div class="card">
            <div class="card-header noSelect">
              敏感信息 
              <!-- <button class="card-button" id="copySensitiveBtn">复制全部</button> -->
            </div>
            <div class="card-content" id="sensitive_list"></div>
          </div>
        </div>
      </div>
    </div>
  </div>

  <div id="tab2" class="tab-content">
    <div class="card" style="width: 98%;">
      <div class="card-header noSelect">批量打开多个URL</div>
      <div class="card-content" style="border-left: none; padding: 15px;">
        <textarea id="urlMultiInput"
          style="width: 95%; height: 200px; margin-bottom: 10px; padding: 8px; border: 1px solid #ddd; border-radius: 4px; resize: vertical;"
          placeholder="可输入多个URL，每行一个"></textarea>
        <div style="display: flex; gap: 10px;justify-content: center;">
          <button id="clearUrls" class="card-button">清空输入</button>
          <div style="width: 10px;"></div>
          <button id="openAllUrls" class="card-button">批量打开</button>
        </div>
        <div style="margin-top: 10px; font-size: 12px; color: #666;">
          提示：可直接在"信息搜集"中点击"复制完整URL"
        </div>
      </div>
    </div>
  </div>

  <!-- 新增记事本标签页 -->
  <div id="tab5" class="tab-content">
    <div class="card" style="width: 98%;">
      <div class="card-header noSelect">我的笔记</div>
      <div class="card-content" style="border-left: none; padding: 15px;">
        <textarea id="notepadInput"
          style="width: 95%; height: 300px; margin-bottom: 10px; padding: 8px; border: 1px solid #ddd; border-radius: 4px; resize: vertical;"
          placeholder="在这里记录你的笔记..."></textarea>
        <div style="display: flex; gap: 10px;justify-content: center;">
          <button id="clearNoteBtn" class="card-button">清空笔记</button>
          <div style="width: 10px;"></div>
          <button id="saveNoteBtn" class="card-button">保存笔记</button>
        </div>
        <div style="margin-top: 10px; font-size: 12px; color: #666;">
          提示：笔记会保存在本地，刷新页面或重启浏览器不会丢失
        </div>
      </div>
    </div>
  </div>

  <div id="tab3" class="tab-content">
    <div class="card" style="width: 98%;">
      <div class="card-header noSelect">黑名单域名设置</div>
      <div class="card-content">
        <textarea id="blacklistInput" style="width: 95%; height: 80px; margin-bottom: 10px; padding: 6px;"
          placeholder="每行一个域名，例如：baidu.com"></textarea>
        <div style="display: flex; justify-content: center;">
          <button id="saveBlacklistBtn" class="card-button">保存黑名单</button>
        </div>

      </div>
    </div>
    <div style="height: 15px;"></div>
    <div class="card" style="width: 98%;">
      <div class="card-header noSelect">基础目录设置</div>
      <div class="card-content">
        <input id="basePathInput" type="text" placeholder="列如：/api/"
          style="width: 95%; padding: 6px; margin-bottom: 10px;" />
        <div style="display: flex; justify-content: center;">
          <button id="saveBasePathBtn" class="card-button">保存基础目录</button>
        </div>
      </div>
    </div>
  </div>

  <div id="tab4" class="tab-content">
    <div class="card-about">
      <div class="card-header">工具简介</div>
      <div class="card-content">
        LoveJS 是一款完全免费开源的网络安全工具，主要用于搜集页面、JS中的敏感信息和接口
      </div>
    </div>
    <div style="height: 20px;"></div>
    <div class="card-about">
      <div class="card-header">作者介绍</div>
      <div class="card-content">
        無名 (n0name)：玄域靶场系统作者、LoveJS作者<br>
        Github 主页：<a href="https://github.com/n0name-X" target="_blank">https://github.com/n0name-X</a><br>
        Bilibili 主页：<a href="https://space.bilibili.com/515362065"
          target="_blank">https://space.bilibili.com/515362065</a><br>
        玄域靶场地址：<a href="https://www.shangsec.com" target="_blank">https://www.shangsec.com</a><br>
      </div>
    </div>
  </div>
</body>

</html>